<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($name); ?></title>
<link type="text/css" href="__APP__/statics/css/banner.css" rel="stylesheet">
<script type="text/javascript" src="__APP__/statics/jquery.1.4.2.js"></script>
<script type="text/javascript" src="__APP__/statics/js/catelist.js"></script>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font-family:"微软雅黑",Arial,Lucida,Verdana,Helvetica,sans-serif;font-size:12px;color:#333;line-height:150%;background:#fff;}
a:link,a:visited{color:#333;text-decoration:none;}
a:hover{color:#317ee7;text-decoration:none;}
a:active{color:#317ee7;}
/* top */
.top{width:100%;height:25px;line-height:25px;background:url(__APP__/statics/topbg.gif);}
.top2{width:1200px;margin:0 auto;}
.top2-left{float:left;cursor:pointer}
.top2-right{float:right;margin-left:10px;}
/* logo */
.logo{width:1200px;height:80px;margin:0 auto;margin-top:10px;}
.logo span{display:block;float:left;}

.search{display:block;background:#317ee7;width:510px;height:35px;line-height:35px;margin:0 auto;margin-top:15px;float:left;vertical-align:middle}
.search ul{display:block;float:left;}
.top-ad{width:1200px;margin:0 auto;margin-top:10px}
/*banner*/
.banner-box{width:1200px;margin:0 auto;margin-top:7px;height:500px;}
.banner{width:780px;height:540px;float:left;margin-left:5px;}
.ban-left{width:200px;height:507px;float:left;background:#317ee7;margin-top:-7px;color:#fff}
/*banner-end*/
.banner_tui{padding:5px;font-size:15px;margin-top:5px;background:#ffba00;color:#fff}
.banner_tui_box{border:1px solid #dedede;text-align:center}
.banner_tui_box dl{width:145px;float:left;margin-right:10px;}

.ban-right{width:200px;height:420px;float:right;}
.shop_new{height:200px;margin-top:10px;padding:5px;border:1px solid #dedede;}

/* cate_list */
.category-content{height:35px;position:relative;margin:0 auto;margin-top:10px;z-index:113;background:#317ee7;font-family:"微软雅黑"}
.category-content span{display:block;float:left;text-align:center;width:120px;line-height:35px;font-size:17px;color:#fff}
.category-content span:hover{background:#ffba00}
.allgoods{height:35px;line-height:35px;border:0px;text-align:center;background:#317ee7;color:#fff;font-size:17px}
.category-content .category{width:1200px;position:absolute;top:0px;z-index:113;width:199px;+height:456px;border:1px solid #dadad9;border-top:none;background:#fefefe;box-shadow:1px 1px 1px #dedede;}
.category-content .category-list li{height:72px;border:2px solid #fff;border-right:none;position:relative;z-index:113; vertical-align:bottom;}
.category-content .category-list a:hover{text-decoration:none;color:#D2364C;}
.category-content .category-info{padding-left:12px;}
.category-content .category-name{overflow:hidden;position:relative;padding-top:10px;font:600 16px/30px "宋体";}
.category-content .category-name i{position:absolute;top:13px;width:25px;height:25px;-top:6px;}
.category-content .category-name b{margin-left:4px;font:400 12px/28px "宋体";}
.category-content .category-name a{color:#4c4c4c;}
.category-content .category-name .ml-22{margin-left:35px;}
.category-content .list-nz i{background-position:0 -200px;}
.category-content .list-nanz i{background-position:-23px -200px;}
.category-content .list-tz i{background-position:-48px -200px;}
.category-content .list-ny i{background-position:-72px -200px;}
.category-content .list-xb i{background-position:-96px -200px;}
.category-content .list-xl i{background-position:0 -225px;}
.category-content .c-category-list{font:400 12px/24px "宋体";}
.category-content .c-category-list a{margin-right:8px;color:#626262;}
.category-content .category-info{position:relative;height:72px;overflow:hidden;}
.category-content .category-info em{position:absolute;top:16px;right:10px;width:13px;height:13px;color:#9b9b9b;}
.category-content .category .hover{box-shadow:0px 2px 3px #ccc;margin-left:-1px;padding-left:1px;z-index:999;} 
.category-content .hover .category-info{border:none;text-decoration:none;background:#fff;}
.category-content .menu-item{display:none;position:absolute;left:196px;z-index:11; width:500px;padding:0 0 0 2px;background:#fff;border:none;box-shadow:0px 2px 3px #dedede; border-top:1px solid #bbb9;zoom:1;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4)";*filter:progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4);}
.category-content .menu-item .area-in{position:relative; z-index:1; }
.category-content .menu-item .area-bg{padding:10px 0 10px 20px;}
.category-content .menu-in{display:none;}
.category-content .category-list li.hover .category-info{z-index:999;}
.category-list li.hover .menu-in{border:2px solid #dedede;}
.category-list li.hover{border:2px solid #dedede;border-right:none;}

.c-category-list{width:160px;margin-right:1px;padding-bottom:10px;border-bottom:1px solid #f4f4f4;zoom:1;overflow:hidden;height:20px;}
.area-bg dl{float:left;height:30px;width:70px;font:400 12px/24px "宋体";}
</style>
</head>

<body>
<div class="top">
   <div class="top2">
    <span class="top2-left" id="addto">加入收藏夹</span>
	<span class="top2-right"><a href="__APP__">商城首页</a></span>
	<span class="top2-right"><a href="__GROUP__/Help">客户服务</a></span>
	<span class="top2-right"><a href="__APP__/Member/trade">我的订单</a></span>
	<span class="top2-right">[<a href="__APP__/Member/reg">免费注册</a>]</span>
	<?php if($user == ''): ?><span class="top2-right">
	[<a href="__APP__/Member/login">登录</a>]</span>
	<span class="top2-right"><a href="__APP__/Member/qqlogin" target="_blank"><img src="__APP__/statics/qq_login.png"></a></span>
	<?php else: ?>
	<span class="top2-right">
	<a href="__APP__/Member"><span style="color:#cc0000"><?php echo ($user); ?></span></a>,[<a href="__APP__/Member/loginout">退出</a>]</span><?php endif; ?>
	<span class="top2-right">欢迎来到<?php echo ($name); ?>！</span>
   </div>
</div>
<div class="top-ad"><?php echo ($topad["content"]); ?></div>

<div class="logo">
   <span style="width:350px;"><a href="__APP__"><img src="__APP__/statics/logo-201305.png"></a></span>
<form method="get" action="__GROUP__/List/search">
   <span class="search">
        <ul style="width:430px;height:31px;line-height:31px;padding:3px">
	       <input name="keyword" type="text" style="height:18px;margin-top:0px;padding:5px;border:0px;" size="65">
	   </ul>
	   <ul class="sbox" style="float:left;width:70px;text-align:center;">
	   <input type="image" src="__APP__/statics/search.jpg" height="31" width="59px"></ul>
   </span>
</form>
   <span style="display:block;float:right;margin-top:15px;"><a href="__APP__/Cart/show.html"><img src="__APP__/statics/fuwu.jpg"/></a></span>
</div>

<div style="clear:both"></div>
<!--导航菜单-->
<div class="category-content">
	<div style="width:1200px;margin:0 auto">
			<div>
				<span class="all-goods" style="width:200px">全部商品</span>
				<a href="__APP__/"><span class="all-goods" <?php if($current_class == 1): ?>style="background:#ffba00"<?php endif; ?>>首页</span></a>
				<a href="__APP__/Wshop"><span class="all-goods" <?php if($current_class == 2): ?>style="background:#ffba00"<?php endif; ?>>品牌街</span></a>
				<a href="__APP__/Market"><span class="all-goods" <?php if($current_class == 3): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁超市</span></a>
				<a href="__APP__/Fruit"><span class="all-goods" <?php if($current_class == 4): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁预售</span></a>
				<a href="__APP__/Cart/show.html"><span class="all-goods" style="float:right;width:200px"><img src="__APP__/statics/cart.png">购物车（<i id="cart_num"><?php echo ($cart_num); ?></i>）</span></a>
			</div>

			<div class="category">
			    <ul class="allgoods">全部分类</ul>
				<ul class="category-list">
<?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><li class="js_toggle">
						<div class="category-info list-xl">
							<h3 class="category-name">
								<i <?php if($cat["icon"] != ''): ?>style="background:url(__APP__/statics/icons/cate/<?php echo ($cat["icon"]); ?>)"<?php else: ?>style="background:url(__APP__/statics/icons/cate/c.gif)"<?php endif; ?>></i>
								<a href="__APP__/c/<?php echo ($cat["cat_id"]); ?>" class="ml-22"><?php echo ($cat["cat_name"]); ?></a>
							</h3>
							<p class="c-category-list">
			<?php if(is_array($cat[rec])): $i = 0; $__LIST__ = $cat[rec];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rec): $mod = ($i % 2 );++$i;?><a href="__APP__/c/<?php echo ($rec["cat_id"]); ?>"><?php echo ($rec["cat_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
							</p>
							<em>&gt;</em>
						</div>
						<!--弹出右侧-->
						<div class="menu-item menu-in">
							<div class="area-bg">
			<?php if(is_array($cat[son])): $i = 0; $__LIST__ = $cat[son];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;?><dl><a href="__APP__/c/<?php echo ($son["cat_id"]); ?>"><?php echo ($son["cat_name"]); ?></a></dl><?php endforeach; endif; else: echo "" ;endif; ?>
							</div>
						</div>
						<!--弹出右侧-->
					</li><?php endforeach; endif; else: echo "" ;endif; ?>

				</ul>
			</div>
	</div>
</div>

<div class="banner-box">
<div class="ban-left"></div>
<div class="banner">
	<div id="focus">
		<ul>
<?php if(is_array($strollad)): $i = 0; $__LIST__ = $strollad;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$strollad): $mod = ($i % 2 );++$i;?><li>
				<div style="left:0;top:0;"><?php echo ($strollad["content"]); ?></div>
			</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>

	<div class="banner_tui">优惠专场</div>
	<div class="banner_tui_box">
<?php if(is_array($goods3)): $i = 0; $__LIST__ = $goods3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods3): $mod = ($i % 2 );++$i;?><dl><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods3["goods_id"]); ?>"><img src="__APP__/<?php echo ($goods3["m_pic"]); ?>" height="130px"></a></dl><?php endforeach; endif; else: echo "" ;endif; ?>
	</div>
</div>
<div class="ban-right">
  <div><?php echo ($ad_song["content"]); ?></div>
  <div class="shop_new">
      <dt><img src="__TMPL__/img/notice.jpg"></dt>
<?php if(is_array($notice)): $i = 0; $__LIST__ = $notice;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$notice): $mod = ($i % 2 );++$i;?><dl><a href="__APP__/News/view/?id=<?php echo ($notice["id"]); ?>">><?php echo (substr($notice["title"],0,42)); ?></a></dl><?php endforeach; endif; else: echo "" ;endif; ?>
  </div>

  <div class="shop_new" style="height:230px">
      <dt><img src="__TMPL__/img/newgood.jpg"></dt>
	  <dl><?php echo ($ad_new["content"]); ?></dl>
  </div>
</div>
</div>
<script type="text/javascript" src="__APP__/statics/js/banner.js"></script>

	

<style>

.floor-title{width:1200px;height:40px;line-height:40px;margin:0 auto;margin-top:10px;border-bottom:2px solid #666666;}
.floor-title span{display:block;float:left;}
.floor{width:1200px;height:550px;margin:0 auto;margin-top:10px;padding:2px;}
.floor_left{width:200px;float:left}
.floor_center{margin-left:2px;width:810px;float:left}
.floor_right{border:1px solid #dedede;border-top:2px solid #99cc00;width:193px;height:553px;float:left;margin-left:-7px;margin-top:-14px}
.floor_right_title{padding:10px;text-align:center;font-size:15px;border-bottom:1px dashed #dedede;}
.floor_hot{width:190px;height:80px;border-bottom:1px dashed #dedede}
.floor_hot span{float:left}
.hot_title{height:34px;width:90px;overflow:hidden;margin-left:10px}
.renqi{margin-left:10px;color:#99cc00}

.goods{width:200px;height:270px;border:1px solid #dedede;margin-left:-1px;margin-top:-1px;float:left;}
.goods span{display:block;width:200px;margin:0 auto;margin-top:5px;text-align:center;color:#666666;}
.goods span img{width:180px;height:180px;}

#price{text-align:left;color:#E4393C;font-size:14px;font-family:'微软雅黑';font-weight:bold;margin-left:15px;}
.tui-goods{width:1200px;margin:0 auto;margin-top:15px}
.tui-right{width:200px;float:right}

/*tab*/
.testtab{float:left;width:990px;border:1px solid  #ccc;}
.tabtitle{line-height:35px;height:35px;border-bottom:2px solid #317ee7;}
.tabtitle li{float:left;width:246px;text-align:center;border-left:1px solid #ccc;background:#eee;}
.tabtitle li.cur{color:#fff;background:#317ee7;}
#tabcon{height:220px;padding:10px;margin-top:5px;}
#tabcon ul{float:left;width:170px;margin-left:20px;}
#tabcon ul img{width:160px;max-height:160px}

/*最新成交*/
#quotation{padding:10px;width:180px;margin-top:5px;height:267px;margin:0 auto;overflow:hidden;}
#quotation li{height:70px;padding-bottom:20px;border-bottom:1px dashed #dddddd}
#quotation li .a-r{text-align:right;}
#quotation li span{display:block;padding:3px;float:left}
.order_uname{color:#317ee7}
#quotation img{width:60px}
</style>
<link type="text/css" href="__TMPL__/img/index.css" rel="stylesheet">
<script type="text/javascript" src="__APP__/statics/js/tab.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#testtab2").tab({
		tabId:"#tabtag2",tabTag:"li",conId:"#tabcon",conTag:"div",act:"mouseover",effact: "scrollx",dft:0
	});
});
</script>

<div class="tui-goods">
	<div class="testtab" id="testtab2">
    	<div id="tabtag2" class="tabtitle" style="">
        	<ul>
            	<li class="cur" style="margin-left:-1px">热卖商品</li>
                <li>特价促销</li>
                <li>人气排行</li>
                <li style="width:249px">新品上架</li>
            </ul>
        </div>
        <div id="tabcon">
        	<div>
<?php if(is_array($goods_hot)): $i = 0; $__LIST__ = $goods_hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_hot): $mod = ($i % 2 );++$i;?><ul>
				    <li><a href="__APP__/item/<?php echo ($goods_hot["goods_id"]); ?>.html"><img alt="<?php echo ($goods_hot["goods_name"]); ?>" src="__APP__/<?php echo ($goods_hot["m_pic"]); ?>"></a></li>
					<li style="max-height:38px;overflow:hidden"><a href="__APP__/item/<?php echo ($goods_hot["goods_id"]); ?>.html"><?php echo ($goods_hot["goods_name"]); ?></a></li>
					<li id="price" style="margin-left:0px">￥<?php echo ($goods_hot["price"]); ?></li>
                </ul><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

            <div>
<?php if(is_array($goods_coup)): $i = 0; $__LIST__ = $goods_coup;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_coup): $mod = ($i % 2 );++$i;?><ul>
				    <li><a href="__APP__/item/<?php echo ($goods_coup["goods_id"]); ?>.html"><img alt="<?php echo ($goods_coup["goods_name"]); ?>" src="__APP__/<?php echo ($goods_coup["m_pic"]); ?>"></a></li>
					<li style="max-height:38px;overflow:hidden"><a href="__APP__/item/<?php echo ($goods_coup["goods_id"]); ?>.html"><?php echo ($goods_coup["goods_name"]); ?></a></li>
					<li id="price" style="margin-left:0px">￥<?php echo ($goods_coup["price"]); ?></li>
                </ul><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

            <div>
<?php if(is_array($goods_rec)): $i = 0; $__LIST__ = $goods_rec;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_rec): $mod = ($i % 2 );++$i;?><ul>
				    <li><a href="__APP__/item/<?php echo ($goods_rec["goods_id"]); ?>.html"><img alt="<?php echo ($goods_rec["goods_name"]); ?>" src="__APP__/<?php echo ($goods_rec["m_pic"]); ?>"></a></li>
					<li style="max-height:38px;overflow:hidden"><a href="__APP__/item/<?php echo ($goods_rec["goods_id"]); ?>.html"><?php echo ($goods_rec["goods_name"]); ?></a></li>
					<li id="price" style="margin-left:0px">￥<?php echo ($goods_rec["price"]); ?></li>
                </ul><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

            <div>
<?php if(is_array($goods_new)): $i = 0; $__LIST__ = $goods_new;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_new): $mod = ($i % 2 );++$i;?><ul>
				    <li><a href="__APP__/item/<?php echo ($goods_new["goods_id"]); ?>.html"><img alt="<?php echo ($goods_new["goods_name"]); ?>" src="__APP__/<?php echo ($goods_new["m_pic"]); ?>"></a></li>
					<li style="max-height:38px;overflow:hidden"><a href="__APP__/item/<?php echo ($goods_new["goods_id"]); ?>.html"><?php echo ($goods_new["goods_name"]); ?></a></li>
					<li id="price" style="margin-left:0px">￥<?php echo ($goods_new["price"]); ?></li>
                </ul><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>

	<div class="tui-right"><?php echo ($goods_hot_right["content"]); ?></div>
</div>


<div style="clear:both"></div>
<!--1F-->
<div class="floor-title">
    <span><img src="__TMPL__/img/1f.jpg"/></span>
	<span style="font-family:'微软雅黑';font-size:20px;font-weight:bold;margin-left:20px;"><?php echo ($title_ad["index_title1"]); ?></span>
	<span style="float:right;color:#0066FF;margin-right:10px"><?php echo ($ad_title[0]["content"]); ?></span>
</div>
<div class="floor">
   <div class="floor_left">
     <div><?php echo ($ad_left[0]["content"]); ?></div>
	 <div><?php echo ($ad_left[1]["content"]); ?></div>
   </div>

   <div class="floor_center">
		   <?php if(is_array($goods)): $i = 0; $__LIST__ = array_slice($goods,0,8,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods): $mod = ($i % 2 );++$i;?><div class="goods">
		   <?php if($goods["m_pic"] == ''): ?><span><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods["goods_id"]); ?>"><img src="__APP__/statics/no-good.jpg"></a></span>
			<?php else: ?>
			  <span><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods["goods_id"]); ?>"><img alt="<?php echo ($goods["goods_name"]); ?>" src="__APP__/<?php echo ($goods["m_pic"]); ?>"></a></span><?php endif; ?>
			  <span style="padding:10px;width:160px;text-align:left;height:28px;overflow:hidden;"><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods["goods_id"]); ?>"><?php echo (substr($goods["goods_name"],0,100)); ?></a></span> 
			  <span id="price">￥<?php echo ($goods["price"]); ?></span> 
<?php if($goods["uptime"] > $nowtime): ?><div style="position:absolute;z-index:100;width:60px;height:60px;margin-top:-265px;margin-left:140px;"><img src="__APP__/statics/tag_new.png"></div><?php endif; ?>
		   </div><?php endforeach; endif; else: echo "" ;endif; ?>
   </div>

   <div class="floor_right">
      <div class="floor_right_title">热销榜</div>
<?php if(is_array($hot)): $i = 0; $__LIST__ = $hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hot): $mod = ($i % 2 );++$i;?><div class="floor_hot">
          <span style="padding:3px;background:#99cc00;color:#fff;font-size:25px;"><?php echo ($i); ?></span>
		  <span><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot["goods_id"]); ?>"><img alt="<?php echo ($hot["goods_name"]); ?>" src="__APP__/<?php echo ($hot["s_pic"]); ?>" width="60"></a>
		  </span>
		  <span>
              <dl id="price" style="margin-left:5px">￥<?php echo ($hot["price"]); ?></dl>
			  <dl class="hot_title"><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot["goods_id"]); ?>"><?php echo ($hot["goods_name"]); ?></a></dl>
			  <dl class="renqi">人气：<?php echo ($hot["view_count"]); ?></dl>
		  </span>
	  </div><?php endforeach; endif; else: echo "" ;endif; ?>
   </div>
</div>
<!--1F end-->

<!--2F-->
<div class="floor-title">
    <span><img src="__TMPL__/img/2f.jpg"/></span>
	<span style="font-family:'微软雅黑';font-size:20px;font-weight:bold;margin-left:20px;"><?php echo ($title_ad["index_title2"]); ?></span>
	<span style="float:right;color:#0066FF;margin-right:10px"><?php echo ($ad_title[1]["content"]); ?></span>
</div>
<div class="floor">
   <div class="floor_left">
     <div><?php echo ($ad_left[2]["content"]); ?></div>
	 <div><?php echo ($ad_left[3]["content"]); ?></div>
   </div>

   <div class="floor_center">
		   <?php if(is_array($goods2)): $i = 0; $__LIST__ = array_slice($goods2,0,8,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods2): $mod = ($i % 2 );++$i;?><div class="goods">
		   <?php if($goods2["m_pic"] == ''): ?><span><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods2["goods_id"]); ?>"><img src="__APP__/statics/no-good.jpg"></a></span>
			<?php else: ?>
			  <span><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods2["goods_id"]); ?>"><img alt="<?php echo ($goods2["goods_name"]); ?>" src="__APP__/<?php echo ($goods2["m_pic"]); ?>"></a></span><?php endif; ?>
			  <span style="padding:10px;width:160px;text-align:left;height:30px;overflow:hidden;"><a href="__GROUP__/Goods/item.html?id=<?php echo ($goods2["goods_id"]); ?>"><?php echo (substr($goods2["goods_name"],0,100)); ?></a></span> 
			  <span id="price">￥<?php echo ($goods2["price"]); ?></span> 
<?php if($goods2["uptime"] > $nowtime): ?><div style="position:absolute;z-index:100;width:60px;height:60px;margin-top:-265px;margin-left:140px;"><img src="__APP__/statics/tag_new.png"></div><?php endif; ?>
		   </div><?php endforeach; endif; else: echo "" ;endif; ?>
         </div>
	<div class="floor_right">
      <div class="floor_right_title">热销榜</div>
<?php if(is_array($hot1)): $i = 0; $__LIST__ = $hot1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hot1): $mod = ($i % 2 );++$i;?><div class="floor_hot">
          <span style="padding:3px;background:#99cc00;color:#fff;font-size:25px;"><?php echo ($i); ?></span>
		  <span><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot1["goods_id"]); ?>"><img alt="<?php echo ($hot1["goods_name"]); ?>" src="__APP__/<?php echo ($hot1["s_pic"]); ?>" width="60"></a>
		  </span>
		  <span>
              <dl id="price" style="margin-left:5px">￥<?php echo ($hot1["price"]); ?></dl>
			  <dl class="hot_title"><a href="__GROUP__/Goods/item.html?id=<?php echo ($hot1["goods_id"]); ?>"><?php echo ($hot1["goods_name"]); ?></a></dl>
			  <dl class="renqi">人气：<?php echo ($hot1["view_count"]); ?></dl>
		  </span>
	  </div><?php endforeach; endif; else: echo "" ;endif; ?>
   </div>
   
   </div>
<!--2F end-->

<!--3F-->
<div class="floor-title">
    <span><img src="__TMPL__/img/2f.jpg"/></span>
	<span style="font-family:'微软雅黑';font-size:20px;font-weight:bold;margin-left:20px;"><?php echo ($title_ad["index_title3"]); ?></span>
	<span style="float:right;color:#0066FF;margin-right:10px"><?php echo ($ad_title[2]["content"]); ?></span>
</div>
<div class="floor" style="height:100%">
        <div class="floor_left" style="height:340px;border:1px solid #dddddd">
		       <div class="floor_right_title">TA刚购买了…</div>
			   <div>
				<div id="quotation">
					<ul>
<?php if(is_array($order_list)): $i = 0; $__LIST__ = $order_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order_list): $mod = ($i % 2 );++$i;?><li>
						     <dl class="order_uname"><font color="#cd010e"><?php echo (date("H:i",$order_list["create_time"])); ?></font>&nbsp;&nbsp;<?php echo ($order_list["uname"]); ?><font color="#606060">购买了:</font></dl>
							 <dl>
							     <span style="border:1px solid #dddddd;text-align:center;width:62px"><img src="__APP__/<?php echo ($order_list["s_pic"]); ?>"></span>
								 <span style="width:100px;float:right;">
								     <span style="max-height:36px;overflow:hidden"><a href="__APP__/item/<?php echo ($order_list["goods_id"]); ?>.html"><?php echo ($order_list["goods_name"]); ?></a></span>
									 <span id="price" style="margin-left:0px;">￥<?php echo ($order_list["price"]); ?></span>
								</span>
							 <dl>
						</li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
				</div>
		</div>

		<div class="slide_screen" style="margin-top:0px;float:right">
			<ul class="clearfix">
				<li class="liA">
					<div class="window clearfix">
						<div class="piece">
							<?php echo ($ad_bot1[0]["content"]); ?>
						</div>
						<div class="piece">
							<?php echo ($ad_bot1[1]["content"]); ?>
						</div>

				</li>
				<li class="liB">
					<div class="window clearfix">
						<div class="piece">
							<?php echo ($ad_bot2[0]["content"]); ?>
						</div>
						<div class="piece">
							<?php echo ($ad_bot2[1]["content"]); ?>
						</div>

					</div>
				</li>
				<li class="liC">
					<div class="window clearfix">
						<div class="piece">
							<?php echo ($ad_bot2[2]["content"]); ?>
						</div>
						<div class="piece">
							<?php echo ($ad_bot2[3]["content"]); ?>
						</div>

					</div>
				</li>
				<li class="liD">
					<div class="window clearfix">
						<div class="piece">
							<?php echo ($ad_bot3[0]["content"]); ?>   
						</div>
						<div class="piece">
							<?php echo ($ad_bot3[1]["content"]); ?>
						</div>        

					</div>
				</li>
			</ul>
<!--
			<ul class="libtn">
				<li _index="1"></li>
				<li _index="2"></li>
				<li _index="3"></li>
			</ul>
-->
		</div>
</div>
<!--3F end-->
<div style="clear:both"></div>
<div style="width:1200px;margin:0 auto;margin-top:20px;height:170px;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd">
   <div style="padding:10px;float:left;margin-left:20px;width:220px">
     <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">购物指南</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">新手上路</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">顾客必读</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">联系客服</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">常见问题</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">购物流程</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/1.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
     <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">配送方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货上门</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">配送时效</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货时间</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">物流费用</a></li>
	 </div>
	 <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/2.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
      <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">支付方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">货到付款</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">网银支付</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">礼品卡支付</a></li>

	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/3.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:220px">
      <div style="width:180px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">特色服务</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">售后服务</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">质量保障</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">价格优势</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/4.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:200px">
     <li style="color:#666666;font-size:15px;font-weight:bold">微信扫一扫</li>
     <li style="margin-top:10px;border:1px solid #dddddd;width:100px"><img src="__APP__/statics/wechat.jpg" width="100px"></li>
   </div>
</div>

<div style="text-align:center;width:1200px;margin:0 auto;;margin-top:10px">
<?php echo C('BOTTOM'); ?>
<br><br>
<a href="http://webscan.360.cn/index/checkwebsite/url/www.mayijie.com" target="_blank"><img height="41" src="http://img.webscan.360.cn/status/pai/hash/55b4861c61020a4e248b99462bba432c"/></a>
<img src="__APP__/statics/chengxin.png"><br>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=26985878" charset="UTF-8"></script>
</div>

<style>
#floatPanel .ctrolPanel{width:36px;height:166px;background:#fff url('__APP__/statics/icons/kefu_bg.gif') no-repeat left top;border:solid 1px #ddd;position:fixed;right:25px;top:50%;overflow:hidden;z-index:10000; _position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300);}
#floatPanel .ctrolPanel a{width:34px;font-size:12px;color:#ff6600;letter-spacing:1px;text-align:center;overflow:hidden;}
#floatPanel .ctrolPanel .arrow{height:29px;line-height:28px;display:block;margin:1px auto;}
#floatPanel .ctrolPanel .arrow span{display:none;}
#floatPanel .ctrolPanel .arrow:hover{background:#f4f4f4;}
#floatPanel .ctrolPanel .arrow:hover span{display:block;}
#floatPanel .ctrolPanel .contact{height:60px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .contact span{line-height:90px;}
#floatPanel .ctrolPanel .qrcode{height:40px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .qrcode span{display:none;}

#floatPanel .popPanel{width:230px;height:242px;position:fixed;right:70px;top:50%;z-index:10000;overflow:hidden;display:none;_position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300); }
#floatPanel .popPanel .popPanel-inner{width:230px;height:242px;position:relative;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .arrowPanel{width:10px;height:240px;position:absolute;right:1px;top:102px;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow01{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #ddd;position:absolute;bottom:0;position:absolute;left:2px;top:0;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow02{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #fff;position:absolute;bottom:0;position:absolute;left:0;top:0;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel{width:220px;height:240px;text-align:center;background:#fff;border:solid 1px #ddd;position:absolute;left:0;top:0;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel img{width:200px;height:200px;border:none;padding:10px 10px 5px 10px;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel span{font-size:12px;color:#666;line-height:24px;letter-spacing:1px;}
</style>
<div id="floatPanel">

	<div class="ctrolPanel">
		<a class="arrow" href="#"><span>顶部</span></a>
		<a class="contact" href="http://wpa.qq.com/msgrd?V=1&Uin=<?php echo C('KEFU_QQ'); ?>&Site=<?php echo C('WEB_NAME'); ?>&Menu=yes" 
target="_blank"><span>客服</span></a>
		<a class="qrcode" href="#"><span>微信二维码</span></a>
		<a class="arrow" href="#"><span>底部</span></a>
	</div>
	
	<div class="popPanel">
		<div class="popPanel-inner">
			<div class="qrcodePanel"><img src="__APP__/statics/wechat.jpg" /><span>微信扫描二维码关注“蚂蚁街”</span></div>
			<div class="arrowPanel">
				<div class="arrow01"></div>
				<div class="arrow02"></div>
			</div>
		</div>
	</div>
	
</div>

<script language="javascript">
   $("#addto").click(function(){
      var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd':'Ctrl';
   if(document.all)
   {
      window.external.addFavorite(window.location,document.title);
   }
   else if(window.sidebar)
   { 
       window.sidebar.addPanel(document.title,window.location);
   }
   else{
       alert('添加失败，请用Ctrl+D进行添加');
   }
   });
</script>
<script type="text/javascript">
$(function(){
	
	// 页面浮动面板
	$("#floatPanel > .ctrolPanel > a.arrow").eq(0).click(function(){
		$("html,body").animate({scrollTop :0}, 800);
		return false;
	});
	$("#floatPanel > .ctrolPanel > a.arrow").eq(1).click(function(){
		$("html,body").animate({scrollTop : $(document).height()}, 800);
		return false;
	});

	var objPopPanel = $("#floatPanel > .popPanel");	
	var w = objPopPanel.outerWidth();
	
	$("#floatPanel > .ctrolPanel > a.qrcode").bind({mouseover:function(){
		objPopPanel.css("width","0px").show();
		objPopPanel.animate({"width" : w + "px"},300);
		return false;
	},mouseout : function(){
			objPopPanel.animate({"width" : "0px"},300);
			return false;
			objPopPanel.css("width",w + "px");
		}	
	});
	
});
</script>
</body>
</html>
<script type="text/javascript">
(function() {
	var LI_WIDTH = [583, 199, 199, 198], 
		LI_DOM = [$('.slide_screen li.liA'), $('.slide_screen li.liB'), $('.slide_screen li.liC'), $('.slide_screen li.liD')], 
		LI_BTN = $('.slide_screen .libtn'),
		COUNT =  2, SPEED = 500, DISTIM = 4000, LI_COUNT = 4;
	var cur = 1, next_cur = 2, runid, isclick = true;

	init();
	initEvent();

	runid = setInterval(run, DISTIM);
	function init() {
		LI_BTN.find('li').eq(cur-1).addClass('selected');

		for(var i=0; i<LI_COUNT; i++) {
			LI_DOM[i].find('.window').css({'top':0, 'left':0, 'position':'absolute'});
			LI_DOM[i].find('.window').css('width', LI_WIDTH[i]*COUNT);
		}

	}
	function initEvent() {
		LI_BTN.mouseover(function(ev){
			if(isclick && $(ev.target).attr("_index") !== undefined) {
				isclick = false;
				LI_BTN.find('li').eq(cur-1).removeClass('selected');
				clearInterval(runid);
				runid = null;
				cur = parseInt($(ev.target).attr("_index"));
				next_cur = cur + 1;
				LI_BTN.find('li').eq(cur-1).addClass('selected');
				for(var i=0; i<LI_COUNT; i++) {
					LI_DOM[i].find('.window').stop(true,true).animate({"left": -(cur-1)*LI_WIDTH[i]}, SPEED, function(){
						if(runid===null)runid = setInterval(run, DISTIM);
						isclick = true;
					});
				}
			}
		});
	}
	function run() {
		isclick = false;
		LI_BTN.find('li').eq(cur-1).removeClass('selected');
		if(cur != COUNT){
			for(var i=0; i<LI_COUNT; i++) {
				LI_DOM[i].find('.window').stop(true,true).animate({"left": -(next_cur-1)*LI_WIDTH[i]}, SPEED, function() {
					isclick = true;
				});
			}
			cur++;
			next_cur = cur + 1;
		}
		else {
			for(var i=0; i<LI_COUNT; i++) {
				LI_DOM[i].find('.piece:lt('+(COUNT-1)+')').clone().insertAfter(LI_DOM[i].find('.piece').last());
				LI_DOM[i].find('.piece:lt('+(COUNT-1)+')').remove();
				LI_DOM[i].find('.window').css('left', '0px');

                LI_DOM[i].find('.window').stop(true,true).animate({"left": -LI_WIDTH[i]}, SPEED, function() {
	            	$(this).find('.piece').first().clone().insertAfter($(this).find('.piece').last());
	            	$(this).find('.piece').first().remove();
	            	$(this).css('left', '0px');
	            	isclick = true;
                });
			}
			cur = 1;
			next_cur = cur + 1;
		}
		LI_BTN.find('li').eq(cur-1).addClass('selected');
	}
})();


	var scrtime;
	$("#quotation").hover(function(){
		clearInterval(scrtime);
	
	},function(){
	
	scrtime = setInterval(function(){
		var $ul = $("#quotation ul");
		var liHeight = $ul.find("li:last").height();
		$ul.animate({marginTop : liHeight + 21 + "px"},1000,function(){
		
		$ul.find("li:last").prependTo($ul)
		$ul.find("li:first").hide();
		$ul.css({marginTop:0});
		$ul.find("li:first").fadeIn(1000);
		});
	},4000);
	
	}).trigger("mouseleave");
</script>